<template>
  <div class="right">
    <div class="head">
      <span :class="[active == 1 ? 'active' : '']" @click="active = 1">
        基本信息
      </span>
      <span :class="[active == 2 ? 'active' : '']" @click="active = 2">
        组织成员
      </span>
      <!-- <span :class="[active == 3 ? 'active' : '']" @click="active = 3">
        统筹机构
      </span> -->
      <span class="back" @click="$router.go(-1)">
        返回
      </span>
    </div>
    <div class="project_main">
      <div v-if="active == 1" class="info">
        <p>
          <span>机构名称：</span>
          <el-input v-model="name" placeholder="太原市投促局"></el-input>
        </p>
        <p>
          <span>局内领导：</span>
          <el-input v-model="charge" placeholder="请输入"></el-input>
        </p>
        <p>
          <span>联系方式:</span>
          <el-input v-model="phone" placeholder="请输入"></el-input>
        </p>
        <p>
          <span>总人数：</span>
          <el-input v-model="pnums" placeholder="请输入"></el-input>
        </p>
        <p>
          <span>部门个数：</span>
          <el-input v-model="secnums" placeholder="请输入"></el-input>
        </p>
        <p>
          <span>投促局职能</span>
          <el-input
            type="textarea"
            v-model="func"
            placeholder="请输入"
          ></el-input>
        </p>
        <p>
          <el-button class="btn-bc" @click="editDetail()">保存</el-button>
        </p>
      </div>
      <div v-if="active == 2">
        <div class="add-btn" @click="showDialog1 = true">
          新增
        </div>

        <div class="project_tables">
          <el-table
            :key="1"
            :data="personnellist"
            style="width: 1200px;margin-bottom: 20px;"
            height="624"
            border
            stripe
            :header-cell-style="{
              textAlign: 'center',
            }"
            :cell-style="{
              textAlign: 'center',
            }"
          >
            <el-table-column prop="name" label="成员"> </el-table-column>
            <el-table-column prop="position" label="职务"> </el-table-column>
            <el-table-column label="操作" width="240">
              <template slot-scope="scope">
                <span class="del-btn" @click="setDelIdType(scope.row.id, 1)">
                  删除
                </span>
              </template>
            </el-table-column>
          </el-table>
        </div>
      </div>
      <!-- 
      <div v-if="active == 3">
        <div class="add-btn" @click="showDialog2 = true">
          新增
        </div>
        <div class="project_tables">
          <el-table
            :key="2"
            :data="listorgctrl"
            style="width: 1200px;margin-bottom: 20px;"
            height="624"
            :row-key="id"
            border
            stripe
            :header-cell-style="{
              textAlign: 'center',
            }"
            :cell-style="{
              textAlign: 'center',
            }"
          >
            <el-table-column prop="name" label="机构名称"> </el-table-column>
            <el-table-column prop="charge" label="机构负责人">
            </el-table-column>
            <el-table-column prop="phone" label="负责人联系电话">
            </el-table-column>
            <el-table-column label="操作" width="240">
              <template slot-scope="scope">
                <span class="del-btn" @click="setDelIdType(scope.row.id, 2)">
                  删除
                </span>
              </template>
            </el-table-column>
          </el-table>
        </div>
      </div> -->
    </div>
    <el-dialog
      class="del-dialog"
      title="删除提示"
      :visible.sync="showDel"
      @close="closeDel"
    >
      <div class="del-content">
        是否删除此{{ delType == 1 ? "角色" : "机构" }}?
      </div>
      <div slot="footer" class="dialog-footer">
        <div class="qx" @click="closeDel">
          取消
        </div>
        <div class="qd" @click="setDel">
          确 定
        </div>
      </div>
    </el-dialog>
    <el-dialog
      class="add-dialog-1"
      title="新增成员"
      :visible.sync="showDialog1"
      @close="closeDialog1"
    >
      <div class="add-content">
        <ul class="xinzeng_tcjitc">
          <li>
            <span>成员：</span>
            <el-select placeholder="请选择" v-model="uid">
              <el-option
                v-for="(item, index) in listOfStaffdata"
                :key="index"
                :label="item.real_name"
                :value="item.id"
              ></el-option>
            </el-select>
          </li>
          <li>
            <span>职务：</span>
            <el-input v-model="position" placeholder="请输入"></el-input>
          </li>
          <li>
            <span>角色：</span>
            <!-- @change="labelchange($event, industryarr, 1)" -->

            <!-- <el-select placeholder="请选择" v-model="level">
              <el-option
                v-for="(item, index) in industryarr"
                :key="index"
                :label="item.label"
                :value="item.value"
              ></el-option>
            </el-select> -->
            <el-cascader
              v-model="level"
              :options="RoleList"
              :props="{ label: 'label', value: 'label' }"
              clearable
              placeholder="请填写角色"
            ></el-cascader>
          </li>
        </ul>
      </div>
      <div slot="footer" class="dialog-footer">
        <div class="qx" @click="closeDialog1">
          取消
        </div>
        <!-- addStaffOrg -->
        <div class="qd" @click="addStaffOrg">
          确 定
        </div>
      </div>
    </el-dialog>
    <el-dialog
      class="add-dialog"
      title="删除提示"
      :visible.sync="showDialog2"
      @close="closeDialog2"
    >
      <div class="add-content">
        <ul class="xinzeng_tongchoujgtc">
          <el-checkbox-group v-model="checkList">
            <li v-for="(item, index) in getCtrllist" :key="index">
              <el-checkbox
                :label="item.id"
                @change="handleCheckAllChange"
              ></el-checkbox>
              <span>{{ item.name }}</span>
            </li>
          </el-checkbox-group>
        </ul>
      </div>
      <div slot="footer" class="dialog-footer">
        <div class="qx" @click="closeDialog2">
          取消
        </div>
        <!-- addBeCtrl() -->
        <div class="qd" @click="closeDialog2">
          确 定
        </div>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import {
  addStaffOrg,
  orgDetail,
  orgStaff,
  deleteStaffOrg,
  listOfStaff,
  listgetRole,
  orgCtrl,
  getCtrl,
  addBeCtrl,
  deleteCtrl,
  editDetail,
  RoleDownBox,
} from "@/api/system";

export default {
  data() {
    return {
      showDel: false,
      showDialog1: false,
      showDialog2: false,
      userId: "",
      delId: "",
      delType: "",
      active: 1,
      id: "",
      cate: "",
      name: "",
      charge: "",
      phone: "",
      pnums: "",
      personnellist: [],
      listOfStaffdata: [],
      uid: "",
      level: "",
      position: "",
      industryarr: "",
      listorgctrl: [],
      checkList: [],
      getCtrllist: [],
      func: "",
      secnums: "",
      RoleList: [],
      one: "",
      two: "",
    };
  },
  created() {
    this.id = this.$route.query.id;
    this.cate = this.$route.query.cate;
    this.one = this.$route.query.one;
    this.two = this.$route.query.two;
    this.getorgDetail();
    this.getorgStaff();
    this.getlistOfStaff();
    this.getlistgetRole();
    this.getorgCtrl();
    this.getCtrl();
    this.RoleDownBox();
  },
  methods: {
    async RoleDownBox() {
      let res = await RoleDownBox();
      let oneList = [];
      let twoList = [];
      res.map((item) => {
        console.log(item.label);
        if (item.label == this.one) {
          oneList.push(item);
        }
      });
      if (oneList.name == "领导小组" || this.two == "") {
      } else {
        oneList[0].children.map((item) => {
          if (item.label == this.two) {
            twoList.push(item);
          }
        });
        oneList[0].children = twoList;
      }
      this.RoleList = oneList;
    },
    closeDialog1() {
      this.showDialog1 = false;
    },
    closeDialog2() {
      this.showDialog2 = false;
    },
    setDelIdType(id, type) {
      this.delId = id;
      this.delType = type;
      this.showDel = true;
    },
    setDel() {
      if (this.delType == 1) {
        this.getdeleteStaffOrg(this.delId);
      }
      if (this.delType == 2) {
        this.deleteCtrl(this.delId);
      }
    },

    closeDel() {
      this.delId = "";
      this.delType = "";
      this.showDel = false;
    },
    //handleCheckAllChange
    handleCheckAllChange() {},
    //
    async getorgDetail() {
      const res = await orgDetail({
        id: Number(this.id), //   当前信息的id
        cate: Number(this.cate), //  # 1机构，2部门，3组
      });
      this.name = res.name;
      this.charge = res.charge;
      this.phone = res.phone;
      this.pnums = res.pnums;
      this.secnums = res.secnums;
      this.func = res.func;
    },
    // 人员列表
    async getorgStaff() {
      const res = await orgStaff({
        id: Number(this.id), //   当前信息的id
        cate: Number(this.cate), //  # 1机构，2部门，3组
      });
      this.personnellist = res;
    },
    // 人员删除
    async getdeleteStaffOrg(id) {
      const res = await deleteStaffOrg({
        id: Number(this.id), //   当前信息的id
        cate: Number(this.cate), //  # 1机构，2部门，3组
        uid: id, //   当前人员id
      });

      if (res.code == 0) {
        this.$message({
          message: res.msg,
          type: "success",
        });
        this.getorgStaff();
        this.showDel = false;
      } else {
        this.$message({
          message: res.msg,
          type: "error",
        });
      }
    },
    // 新增
    async addStaffOrg() {
      if (this.uid == "") {
        this.$message.warning("请选择成员！");
        return;
      }
      const res = await addStaffOrg({
        id: Number(this.id), //   当前信息的id
        cate: Number(this.cate), //  # 1机构，2部门，3组
        uid: this.uid, //   当前人员id
        one_org: this.level[0],
        two_department: this.level[2] ? this.level[1] : "",
        three_role: this.level[2] ? this.level[2] : this.level[1],
        position: this.position,
      });

      if (res.code == 0) {
        this.$message({
          message: res.msg,
          type: "success",
        });
        this.closeDialog1();
        this.getorgStaff();
      } else {
        this.$message({
          message: res.msg,
          type: "error",
        });
      }
    },

    // listOfStaff
    async getlistOfStaff() {
      const res = await listOfStaff({
        id: Number(this.id), //   当前信息的id
        cate: Number(this.cate), //  # 1机构，2部门，3组
      });
      this.listOfStaffdata = res;
    },
    // 获取职级
    async getlistgetRole() {
      const res = await listgetRole();
      this.industryarr = res;
    },
    close(id) {
      let refName = "popsc" + id;
      this.$refs[refName][0].doClose();
    },
    // 获取统筹机构列表
    async getorgCtrl() {
      const res = await orgCtrl({
        id: Number(this.id), //   当前信息的id
        cate: Number(this.cate), //  # 1机构，2部门，3组
      });
      this.listorgctrl = res;
    },
    async getCtrl() {
      const res = await getCtrl({
        id: Number(this.id), //   当前信息的id
      });
      this.getCtrllist = res;
    },
    async addBeCtrl() {
      const res = await addBeCtrl({
        id: Number(this.id), //   当前信息的id
        ids: this.checkList, //  # 1机构，2部门，3组
      });
      this.checkList = [];
      if (res.code == 0) {
        this.$message({
          message: res.msg,
          type: "success",
        });
        this.getorgCtrl();
      } else {
        this.$message({
          message: res.msg,
          type: "error",
        });
      }
    },

    // 删除
    async deleteCtrl(id) {
      const res = await deleteCtrl({
        id: this.id,
        bectrl_id: id, // 被删除机构的id
      });

      if (res.code == 0) {
        this.$message({
          message: res.msg,
          type: "success",
        });
        this.showDel = false;
        this.getorgCtrl();
      } else {
        this.$message({
          message: res.msg,
          type: "error",
        });
      }
    },
    // 保存
    async editDetail() {
      const res = await editDetail({
        id: Number(this.id), //   当前信息的id
        cate: Number(this.cate), //  # 1机构，2部门，3组
        name: this.name, //")  # 1机构，2部门，3组  的名称
        charge: this.charge, //")  # 局内领导
        charge_phone: this.phone, //")  # 联系方式
        func: this.func, //")  # 部门职能
        pnums: this.pnums, //")  # 人数
        secnums: this.secnums, //")  # 部门组人数
      });
      if (res.code == 0) {
        this.$message({
          message: res.msg,
          type: "success",
        });
        this.this.getorgCtrl();
      } else {
        this.$message({
          message: res.msg,
          type: "error",
        });
      }
    },
  },
};
</script>

<style lang="less" scoped>
.right {
  background: #fff;
  width: 100%;
  height: 100%;
  overflow: hidden;
  table td {
    font-size: 14px;
    line-height: 44px;
  }
  .project_main {
    padding: 10px 22px;
    min-height: 80%;
    overflow: hidden;
    zoom: 1;
    .info {
      margin-top: 20px;
      text-align: left;
      span {
        display: block;
        font-size: 16px;
        color: #666666;
        line-height: 34px;
        opacity: 0.8;
      }
      /deep/ .el-input,
      /deep/ .el-input-inner {
        width: 420px;
        height: 32px;
        background: #ffffff;
        border-radius: 5px;
        margin-bottom: 20px;
      }
      /deep/ .el-textarea,
      /deep/ .el-textarea__inner {
        width: 420px;
        height: 80px;

        background: #ffffff;
        border-radius: 5px;
        margin-bottom: 20px;
      }
      /deep/ .el-textarea__inner {
        border: 1px solid #cccccc;
        resize: none;
        font-size: 16px;
        color: #666666;
      }

      .el-textarea__inner:focus {
        outline: 0;
        border-color: #cccccc;
      }

      /deep/.el-input input {
        width: 420px;
        height: 32px;
        background: #ffffff;
        border: 1px solid #cccccc;
        border-radius: 5px;
        font-size: 16px;
        color: #666666;
      }
    }

    .project_tables {
      font-size: 14px;
      line-height: 44px;
      margin-bottom: 25px;

      tr:nth-child(odd) {
        background: #f3f6fb;

        td {
          border-top: 1px solid #eee;
        }
      }
      span {
        margin: 0 3%;
      }
      .chengzi_btn {
        color: #fe6a00;
        cursor: pointer;
      }
      .lvzi_btn {
        color: #2cb54c;
        cursor: pointer;
      }
      .zizi_btn {
        color: #135de6;
        cursor: pointer;
      }
      .redzi_btn {
        color: #e51313;
        cursor: pointer;
      }
      .bluezi_btn {
        color: #0ebbf3;
        cursor: pointer;
      }
      .huangzi_btn {
        color: #e69554;
        cursor: pointer;
      }

      /deep/.el-button {
        background: none;
        padding: 0;
        border: 0;
      }
    }
    .project_tables td:first-child {
      text-align: left;
      padding-left: 60px;
    }
    .project_tables td img {
      margin-right: 5px;
    }

    //分页
    /deep/.el-pagination {
      float: right;
      margin-top: 20px;
    }
    /deep/.btn-prev {
      border: 1px solid #888;
      padding: 0;
    }
    /deep/.btn-next {
      border: 1px solid #888;
      padding: 0;
    }
    /deep/.el-pager li {
      border: 1px solid #888;
      margin: 0 5px;
    }
    /deep/.el-pager li.active,
    /deep/.el-pager li:hover {
      border: 1px solid #fe6a00;
      color: #fe6a00;
    }

    //分页end
  }
}

.dispatch {
  width: 100%;
  height: 138px;
  background: #ffffff;
  border: 1px solid #eeeeee;
  z-index: 99;
  margin-top: 15px;
  ul {
    width: 100%;
    height: 138px;
    padding: 10px;
    overflow: auto;
    li {
      list-style: none;
      cursor: pointer;
      height: 30px;
      line-height: 20px;
      width: 100%;
      padding: 5px;
      &:hover {
        background-color: #eee;
        color: #e69554;
      }
      &.active {
        color: #e69554;
        background-color: #eee;
      }
    }
  }
}
.btn {
  text-align: center;
  margin: 20px 0 15px 0;
}
.btnss {
  text-align: left;
  margin: 20px 0 15px 0;
}
.btn-bc {
  padding: 0;
  margin: 18px auto;
  width: 100px;
  height: 40px;
  line-height: 40px;
  background: #446db3;
  border-radius: 8px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  cursor: default;
}
#but1 {
  width: 72px;
  height: 30px;
  background: #fe6a00;
  border: 1px solid #fe6a00;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  line-height: 30px;
  padding: 0;
  margin-right: 10px;
}
#but2 {
  width: 72px;
  height: 30px;
  background: #ffffff;
  border: 1px solid #fe6a00;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 400;
  color: #fe6a00;
  line-height: 30px;
  padding: 0;
}

.branch {
  overflow: auto;
  ul {
    height: auto;
  }
}
.el-collapse-item {
  padding: 0 10px;
}
.project_tables /deep/ .el-checkbox__label {
  display: none;
}

.xinzeng_xiajitc {
  background: #f2f4f7;
  margin-top: 5px;
  overflow: hidden;
  zoom: 1;
  margin-bottom: 15px;
  padding: 15px;
}
.xinzeng_xiajitc li {
  list-style: none;
  margin-right: 20px;
  overflow: hidden;
  zoom: 1;
  line-height: 34px;
  float: left;
}
.xinzeng_xiajitc li span {
  line-height: 34px;
}
.xinzeng_xiajitc li .el-input {
  width: 65%;
}
.xinzeng_xiajitc li .el-select {
  width: 65%;
}
.xinzeng_xiajitc li .el-textarea {
  width: 65%;
}
.tc_tit {
  margin-bottom: 5px;
}

.xinzeng_jgoutc {
  background: #fafcff;
  padding: 10px;
  line-height: 34px;
  height: 110px;
  overflow-y: auto;
  margin-bottom: 15px;
}
.xinzeng_jgoutc li {
  list-style: none;
  padding-left: 10px;
}
.xinzeng_jgoutc li.hover,
.xinzeng_jgoutc li:hover {
  background: #eee;
  color: #fe6a00;
}

.xinzeng_tcjitc {
  margin-top: 5px;
  overflow: hidden;
  zoom: 1;
  margin-bottom: 15px;
}
.xinzeng_tcjitc li {
  list-style: none;
  margin-right: 20px;
  overflow: hidden;
  zoom: 1;
  line-height: 34px;
  margin-bottom: 10px;
}
.xinzeng_tcjitc li span {
  line-height: 54px;
  display: block;
  width: 85px;
  float: left;
  padding-left: 15px;
  font-size: 18px;
  color: #333;
}
.xinzeng_tcjitc li .el-input {
  width: 65%;
  font-size: 18px;
  color: #666;
}
.xinzeng_tcjitc li .el-select {
  width: 65%;
  font-size: 18px;
  color: #666;
}

.xinzeng_tongchoujgtc {
  background: #fafcff;
  padding: 10px;
  line-height: 28px;
  height: 130px;
  overflow-y: auto;
  li {
    height: 30px;
    color: #222222;
    span {
      font-size: 14px;
      display: inline-block;
    }
  }
}
.xinzeng_tongchoujgtc .el-checkbox {
  margin-right: 5px;
}

.quanx_check {
  margin-left: 20px;
}
.quanx_check span {
  margin-right: 25px;
}

/deep/.el-collapse-item__content {
  padding-bottom: 0;
}
/deep/.el-collapse-item__arrow {
  display: none;
}
/deep/.el-button {
  border: 0;
}
/deep/.el-input {
  width: 100%;
  input {
    border-radius: 0;
    width: 100%;
    height: 30px;
    color: #333;
    background: #ffffff;
    border: 1px solid #dddddd;
  }
  ::-webkit-input-placeholder {
    color: #333;
  }
  // /deep/.el-icon-circle-close {
  //   background: url("../../assets/merchantsradar/cuo.png") 50% 50% no-repeat;
  // }
  .el-icon-circle-close:before {
    content: "";
  }
}
/deep/.el-select {
  width: 70%;
  height: 30px;
  input {
    width: 100%;
    height: 30px;
    background: #ffffff;
    border: 1px solid #dddddd;
  }
  /deep/.el-input__icon {
    line-height: 30px !important;
  }
}
/deep/ .el-checkbox__label {
  display: none;
}

.miaoshu {
  border: 1px solid #eee;
  padding: 10px;
  margin-bottom: 25px;
}
.miaoshu dt {
  overflow: hidden;
  zoom: 1;
  margin-bottom: 10px;
  text-align: left;
}
.miaoshu dt h1 {
  font-size: 16px;
  font-weight: bold;
  float: left;
}
.miaoshu dt span {
  float: right;
}
.bianj_btns {
  display: inline-block;
  padding: 0 22px;
  height: 30px;
  background: #fe6a00;
  border-radius: 4px;
  line-height: 30px;
  font-size: 14px;
  text-align: center;
  color: #ffffff;
  cursor: pointer;
}
.miaoshu dd {
  text-align: left;
  padding: 0 10px;
}

.head {
  position: relative;
  padding-left: 20px;
  height: 66px;
  line-height: 66px;
  font-size: 20px;
  font-family: Microsoft YaHei;
  font-weight: bold;
  color: #446db3;
  background: #ffffff;
  box-shadow: 0px 2px 6px 0px rgba(4, 0, 0, 0.1);
  text-align: left;
  span {
    margin-right: 75px;
    display: inline-block;
    height: 66px;
    font-size: 20px;
    font-weight: 400;
    color: #333333;
    cursor: default;
  }
  span.active {
    font-weight: bold;
    color: #446db3;
    border-bottom: 4px solid #446db3;
  }
  .back {
    position: absolute;
    top: 14px;
    right: 0;
    width: 100px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    background: #5889dc;
    border-radius: 4px;
    font-size: 16px;
    color: #ffffff;
  }
}
/deep/ .el-table--border th.el-table__cell {
  padding: 0;
  height: 48px;
  background: #f5f6f7;
  border-right: 4px solid #fff;
  font-size: 14px;
  font-weight: bold;
  color: #333333;
}

/deep/ .el-table [class*="el-table__row--level"] .el-table__expand-icon {
  display: none;
}
/deep/ .el-table__indent {
  display: none;
}
/deep/ .el-table--enable-row-transition .el-table__body td.el-table__cell {
  padding: 0;
  height: 48px;
  line-height: 48px;
  border: none;
  background: #f9fafb;
  border-bottom: 4px solid #fff;
}
/deep/
  .el-table--striped
  .el-table__body
  tr.el-table__row--striped
  td.el-table__cell {
  background: #f5f6f7;
}
/deep/ .el-table--border {
  border: none;
}
/deep/ .el-table__header-wrapper {
  margin-bottom: 4px;
}
.add-btn {
  margin: 20px 0 30px;
  display: block;
  width: 120px;
  height: 38px;
  line-height: 38px;
  background: #f89718;
  border-radius: 4px;
  font-size: 16px;
  color: #ffffff;
  text-align: center;
  cursor: default;
}
.del-btn {
  margin: 0 auto !important;
  display: block;
  width: 50px;
  height: 24px;
  line-height: 24px;
  background: #f15847;
  border-radius: 4px;
  font-size: 14px;
  color: #ffffff;
  cursor: default;
}

/deep/ .el-dialog {
  padding: 0 46px;
  width: 720px !important;
  height: 580px !important;
  top: 50%;
  margin-top: -290px !important;
  box-shadow: 0px 5px 50px 0px rgba(186, 186, 186, 0.5);
  border-radius: 20px;
}
/deep/ .del-dialog .el-dialog {
  padding: 0 46px;
  width: 720px !important;
  height: 300px !important;
  top: 50%;
  margin-top: -150px !important;
  box-shadow: 0px 5px 50px 0px rgba(186, 186, 186, 0.5);
  border-radius: 20px;
}
.del-content {
  font-size: 22px;
}
.add-bm {
  padding: 20px 52px;
  p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    height: 54px;
    line-height: 54px;
    span {
      font-size: 18px;
      color: #333333;
    }
  }
  /deep/ .el-input,
  /deep/ .el-input__inner {
    width: 350px;
    height: 54px;
    background: #f7f7f7;
    border-radius: 8px;
    border: 0;
    font-size: 18px;
    color: #666;
  }
}
/deep/.add-dialog-1 .el-dialog {
  padding: 0 50px;
  width: 700px !important;
  height: 520px !important;
  top: 50%;
  margin-top: -260px !important;
}
/deep/.add-dialog .el-dialog {
  padding: 0 50px;
  width: 700px !important;
  height: 520px !important;
  top: 50%;
  margin-top: -260px !important;
}
/deep/ .add-dialog .el-dialog__body {
  padding: 30px 30px;
}
/deep/ .add-content .flex-box {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  p > span {
    display: inline-block;
    width: 140px;
    text-align: left;
    font-size: 18px;
    color: #333333;
  }
  .el-input {
    width: 350px;
    height: 54px;
    background: #f7f7f7;
    border-radius: 8px;
  }
  .el-input__inner {
    width: 350px;
    height: 54px;
    background: #f7f7f7;
    border-radius: 8px;
    border: none;
    font-size: 18px;
    color: #333333;
  }
  .el-form-item__label {
    width: 130px !important;
    font-size: 18px;
    color: rgba(51, 51, 51, 1);
  }
  .el-form-item__content {
    margin-left: 130px !important;
  }
  // & > div {
  //   flex: 0 0 33%;
  // }
}
.tipss {
  text-align: right;
  font-size: 14px;
  color: #999999;
  line-height: 33px;
  span {
    color: #ff0000;
  }
}
/deep/ .el-dialog__header {
  padding-top: 30px;
  height: 100px;
  line-height: 70px;
  border-bottom: 1px dashed #ddd;

  .el-dialog__title {
    font-size: 30px;
    font-weight: bold;
    color: #446db3;
  }
}

/deep/.el-dialog__body {
  padding: 30px 20px;
  .tips {
    font-size: 24px;
  }
  li {
    margin: 0 auto;
    height: 54px;
    margin-bottom: 20px;
    // span {
    //   width: 80px !important;
    //   padding: 0 !important;
    //   font-size: 18px;
    //   color: #333333;
    // }
    .el-input__inner {
      font-size: 18px;
      color: #333333;
      width: 350px;
      height: 54px;
      background: #f7f7f7 !important;
      border-radius: 8px;
      border: none !important;
    }
  }
}
/deep/.dialog-footer {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-evenly;
  .qx {
    display: inline-block;
    width: 247px;
    height: 48px;
    line-height: 44px;
    border: 2px solid #446db3;
    border-radius: 10px;
    font-size: 26px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    color: #446db3;
    text-align: center;
    cursor: default;
  }
  .qd {
    display: inline-block;
    width: 247px;
    height: 48px;
    line-height: 44px;
    background: #446db3;
    box-shadow: 0px 2px 5px 0px rgba(68, 109, 179, 0.5);
    border: 2px solid #446db3;
    border-radius: 10px;
    font-size: 26px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    cursor: default;
  }
}
/deep/ .el-icon-close:before {
  content: "";
  display: block;
  width: 21px;
  height: 20px;
  background: url("~@img/system/icon-close.png");
}
/deep/.el-dialog__headerbtn {
  right: 50px;
}
/*
  *常用电脑尺寸  1680 * 900
  *              1536 * 864
  *              1440 * 900
  *ipad pro      1366 * 1024
  *ipad mini     1024 * 768
  *ipad          1024 * 768
 */
/*分辨率低于1680，采用下面的样式*/
@media screen and (max-device-width: 1680px) {
  /deep/ .el-table__body-wrapper {
    height: 480px !important;
  }
}
/*分辨率低于1536，采用下面的样式*/
@media screen and (max-device-width: 1536px) {
}
/*分辨率低于1440，采用下面的样式*/
@media screen and (max-device-width: 1440px) {
}
/*分辨率低于1366，采用下面的样式*/
@media screen and (max-device-width: 1366px) {
}
/*分辨率低于1180，采用下面的样式*/
@media screen and (max-device-width: 1180px) {
  /deep/ .el-table__body-wrapper {
    height: 460px !important;
  }
  /deep/ .info .el-input {
    margin-bottom: 10px !important;
  }
}
/*分辨率低于1024，采用下面的样式*/
@media screen and (max-device-width: 1024px) {
  /deep/ .info .el-input {
    margin-bottom: 4px !important;
  }
  /deep/ .el-table__body-wrapper {
    height: 400px !important;
  }
}
</style>
